#include "octopod.h"
#include "socket.h"
#include <gtest/gtest.h>

namespace {

class NetworkAddressTest : public ::testing::Test {
 protected:
  // You can remove any or all of the following functions if its body
  // is empty.

  // If the constructor and destructor are not enough for setting up
  // and cleaning up each test, you can define the following methods:

  virtual void SetUp() {
    // Code here will be called immediately after the constructor (right
    // before each test).
    a = new QHostAddress("127.0.0.1");
    b = new QHostAddress("127.0.0.1");
  }

  octopod::NetworkAddress n;
  QHostAddress *a, *b;
};

TEST_F(NetworkAddressTest, MakeInstance) {
  n.set_hostaddr(a);
  n.set_nataddr(b);
  n.set_port(2000);
}

}  // namespace
